Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Dec 3, 2025

As with 6bb6c6 for the aggregates:

Traits set by the operator may conflict with the testing, and decomissioning may make the resource-provider disappear. To avoid these controllers fighting, let's limit this controller to the actual active lifetime of the hypervisor.

Unfortunately, that means we have to reconcile on every status update.

@fwiesel fwiesel requested a review from notandy December 3, 2025 13:35
@fwiesel fwiesel force-pushed the traits_reconcile_lifetime branch from bcacbc7 to 35f8cad Compare December 3, 2025 14:04
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 36.86% (-2.96%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/traits_controller.go 58.18% (+1.58%) 55 (+2) 32 (+2) 23 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/traits_controller_test.go

As with 6bb6c6 for the aggregates:

Traits set by the operator may conflict with the testing,
and decomissioning may make the resource-provider disappear.
To avoid these controllers fighting, let's limit this controller
to the actual active lifetime of the hypervisor.

Unfortunately, that means we have to reconcile on every status update.
@fwiesel fwiesel merged commit a81095a into main Dec 4, 2025
7 checks passed
@fwiesel fwiesel deleted the traits_reconcile_lifetime branch December 4, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants